package com.chenyongjing.design.pattern.strategy.general;

public class Test {
    public static void main(String[] args) {
        // 选择一个具体策略
        IStrategy strategy = new ContextStrategyA();
        // 来一个上下文环境
        Context context = new Context(strategy);
        context.algorithm();
    }
}
